import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpCoursePaper {
  id!: number;
  paperId!: number;
  courseId!: number;
  uniacid!: number;
  sort?: number;
  sort2: number = 0;
}

export const ImsYzdKpCoursePaperSchema = new EntitySchema({
  class: ImsYzdKpCoursePaper,
  properties: {
    id: { primary: true, type: 'number' },
    paperId: { type: 'number' },
    courseId: { type: 'number' },
    uniacid: { type: 'number' },
    sort: { type: 'number', nullable: true },
    sort2: { type: 'number', default: 0 },
  },
});
